for i in range(11):
    print(i)
for i in range(4,11):
    print(i)
for i in range(4,11,2):
    print(i)
for i in range(0,-5,-1):
    print(i)